<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url" v-if="url != ''"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			webviewStyles: {
			progress: false
			},
			url:''
			}
		},
		onLoad() { 
		const eventChannel = this.getOpenerEventChannel();
		let that = this
		// 监听acceptDataFromOpenerPage事件，获取上一页面通过eventChannel传送到当前页面的数据
		  eventChannel.on('thisJumpLinks', function(data) {
			console.log('坚挺的链接'+data)
			// #ifdef H5
			window.open(data);
			return
			// #endif
		   that.url = data
		  })
		},
		methods: {
			
		}
	
	}
</script>

<style>

</style>
